//
//  TELocalizationSystem.h
//  ThaiExpress
//
//  Created by Le Quang Vinh on 7/11/13.
//  Copyright (c) 2013 Fruity. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FGGlobal.h"

#define AMLocalizedString(key, comment) \
[[TELocalizationSystem sharedLocalSystem] localizedStringForKey:(key) value:(comment)]

#define LocalizationSetLanguage(language) \
[[TELocalizationSystem sharedLocalSystem] setLanguage:(language)]

#define LocalizationGetLanguage \
[[LocalizationSystem sharedLocalSystem] getLanguage]

#define LocalizationReset \
[[TELocalizationSystem sharedLocalSystem] resetLocalization]


@interface TELocalizationSystem : NSObject {
    NSString *language;
}

// you really shouldn't care about this functions and use the MACROS
+ (TELocalizationSystem *)sharedLocalSystem;

//gets the string localized
- (NSString *)localizedStringForKey:(NSString *)key value:(NSString *)comment;

//sets the language
- (void) setLanguage:(NSString*) language;

//gets the current language
- (NSString*) getLanguage;

//resets this system.
- (void) resetLocalization;

- (void)setDefaultLanguages;

- (void)switchLanguages;

@end
